﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="InsertCustomerControl.ascx.cs" Inherits="Control_InsertGroupAccountControl" %>

<table>
    <tr>
        <td><asp:Label ID="Label3" runat="server" Text="FullName: "></asp:Label></td>
        <td><asp:TextBox ID="txtFullNameCustomer" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFullName" runat="server" 
                ControlToValidate="txtFullNameCustomer" ErrorMessage="FullName Not null" 
                Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                ControlToValidate="txtFullNameCustomer" 
                ErrorMessage="Name can not have special character" 
                ValidationExpression="(^[a-zA-Z0-9 ]{1,})$"></asp:RegularExpressionValidator>
        </td>
    </tr>
     
     <tr>
        <td><asp:Label ID="Label10" runat="server" Text="Age: "></asp:Label></td>
        <td><asp:TextBox ID="txtAge" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtAge" ErrorMessage="Age Not null" Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ControlToValidate="txtAge" ErrorMessage="Please fill in your age" 
                ValidationExpression="^[1-9][0-9]?$"></asp:RegularExpressionValidator>
         </td>
    </tr>
    
    <tr>
        <td><asp:Label ID="Label1" runat="server" Text="Sex: "></asp:Label></td>
        <td style="margin-left: 80px">
            <asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem>Male</asp:ListItem>
                <asp:ListItem>FeMale</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
     
     <tr>
        <td><asp:Label ID="Label2" runat="server" Text="Address: "></asp:Label></td>
        <td><asp:TextBox ID="txtAddress" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtAddress" ErrorMessage="Address Not Null" 
                Display="Dynamic"></asp:RequiredFieldValidator>
         </td>
    </tr>
        <tr>
        <td><asp:Label ID="Label4" runat="server" Text="Phone: "></asp:Label></td>
        <td><asp:TextBox ID="txtPhone" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="txtPhone" ErrorMessage="Phone Not Null" 
                Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                ControlToValidate="txtPhone" ErrorMessage="Please fill in your phone" 
                ValidationExpression="0\d{9,10}"></asp:RegularExpressionValidator>
            </td>
    </tr>

    <tr>
        <td><asp:Label ID="Label5" runat="server" Text="Email: "></asp:Label></td>
        <td><asp:TextBox ID="txtEmail" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="Email Not Null" 
                Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="Please fill in the right email" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </td>
    </tr>

    <tr>
        <td><asp:Label ID="Label11" runat="server" Text="Identity Card: "></asp:Label></td>
        <td><asp:TextBox ID="txtCMND" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="txtCMND" ErrorMessage="IdentityCard Not Null" 
                Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                ControlToValidate="txtCMND" 
                ErrorMessage="please fill in the right identity card" 
                ValidationExpression="[0-9]{9}"></asp:RegularExpressionValidator>
        </td>
    </tr>

    <tr>
        <td><asp:Button ID="btnAdd" runat="server"
        Text="Add" onclick="btnAdd_Click1"  /></td>
        <td><asp:Button ID="btnreset" runat="server" 
        Text="Reset" onclick="btnreset_Click"  /></td>
    </tr>
</table>